﻿<%@ Page Language="C#" MasterPageFile="~/Template/Detail.master" AutoEventWireup="true"
    CodeFile="AuditClassDetail.aspx.cs" Inherits="Page_AuditClassDetail" Title="Untitled Page" %>

<%@ Register Src="~/Control/TabberHeader.ascx" TagName="TabberHeader" TagPrefix="wsc" %>
<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link type="text/css" href="../css/smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />

    <script type="text/javascript" src="../Js/jquery-1.3.2.min-vsdoc.js"></script>

    <script type="text/javascript" src="../Js/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" src="../Js/jquery-ui-1.7.2.custom.min.js"></script>

    <script type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>

    <script type="text/javascript">

        function ChangeDetailView1() {
            var height = document.body.clientHeight;
            var infoDetail = document.getElementById("trInfo1");
            if (infoDetail.style.display == 'none') {
                document.getElementById("imgExpand1").src = "../Images/Icon/icon-collapse.png";
                infoDetail.style.display = '';
            }
            else {
                document.getElementById("imgExpand1").src = "../Images/Icon/icon-expand.png";
                infoDetail.style.display = 'none';
            }
            PageResize();
        }
        $(function() {
            $("#dialog").dialog({ autoOpen: false });

        });
        function attendClass() {
            $("#dialog").dialog({
                height: 400, width: 400
            }).dialog("open")
            .parent().appendTo("#dialog_target");

        }
        function refrshDetail() {
            $("#<%=btnRefresh.ClientID %>").click();
        }

        function editInfo() {
            var width = 330;
            var height = 400;
            window.open("NewTrainClass.aspx?ClassID=<%=ClassID %>&Nocache=" + Math.random(), "newwindow", 'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,left=' + (screen.width - width) / 2 + ',top=' + (screen.height - height) / 2);
        }
        function editOrderInfo(orderID) {
            var width = 330;
            var height = 400;
            window.open("EditOrderInfo.aspx?ClassID=<%=ClassID %>&OrderID=" + orderID + "&Nocache=" + Math.random(), "newwindow", 'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,left=' + (screen.width - width) / 2 + ',top=' + (screen.height - height) / 2);
        }

    </script>

    <style type="text/css">
        .FieldName
        {
            width: 70px;
        }
        .FieldInput
        {
            width: 130px;
        }
        .TextArea01
        {
            height: 60px;
            width: 80%;
        }
        .TextArea01
        {
            height: 70px;
            width: 80%;
        }
        .BigTB
        {
            height: 70px;
            width: 80%;
            background: #F4F9FF;
            overflow-y: visible;
        }
        #Table2 .DetailTitle
        {
            height: auto;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ListToolBarPlaceHolder" runat="Server">
    <table cellspacing="2" cellpadding="0" border="0" id="tblOperator" runat="server">
        <tr runat="server" id="trToolMenu">
            <td class="ToolMenu">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                    onclick="attendClass();">
                    <span>
                        <img src="../Images/Icon/Object/tz-add.gif" alt="" /></span><span>我要报名</span>
                </div>
            </td>
            <td class="Fg">
                <img src="../Images/FgLine.gif" alt="" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="TitleContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="InfoContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="TextContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="TabberContentPlaceHolder" runat="Server">
    <wsc:TabberHeader ID="thInfo" runat="server" DivID="div1" Title="详细" Selected="true" />
    <wsc:TabberHeader ID="thOrderInfo" runat="server" Visible="false" DivID="div2" Title="班次详细" />
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Div1ContentPlaceHolder" runat="Server">
    <div style="display: none;">
        <div id="dialog" title="选择班次" class="ui-dialog">
            <table id="Table1" border="0" style="height: 200px; width: 250px;" cellspacing="0"
                cellpadding="0" class="FormTable tablefix">
                <tr>
                    <td>
                        <div style="text-align: center;">
                            班次：
                            <asp:DropDownList runat="server" ID="ddlOrder" AppendDataBoundItems="true">
                                <asp:ListItem Selected="True" Text="请选择" Value="请选择"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div style="text-align: center;">
                            <asp:Button runat="server" ID="btnAttendClass" OnClick="btnAttendClass_Click" Text="确定"
                                CssClass="Button01" />
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <asp:Button runat="server" ID="btnRefresh" OnClick="btnRefresh_Click" />
    </div>
    <div id="dialog_target">
    </div>
    <table cellspacing="0" cellpadding="0" border="0" class="" width="100%"">
        <tr>
            <td class="DetailHeader">
                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                    <tr>
                        <td class="ArticleTitle">
                            <asp:Literal ID="ltTitle" runat="server"></asp:Literal>
                        </td>
                        <td width="0" style="display: none;">
                            <a href="#">
                                <img src="../Images/Icon/icon-collapse.png" alt="字段" style="cursor: pointer;" onclick="ChangeDetailView1();"
                                    id="imgExpand1" /></a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr id="trInfo1">
            <td>
                <div id="MainContent2" class="ScrollDiv">
                    <table id="tblDetail" width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2">
                                    <a class="blue-01"><strong>班级名称：</strong></a>
                                    <asp:Literal ID="tbClassName"  runat="server"></asp:Literal>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2">
                                    <a class="blue-01"><strong>培训天数：</strong></a>
                                    <asp:Literal ID="tbTrainDay" runat="server"></asp:Literal>
                                </div>
                            </td>
                        </tr>
                        <tr style="display: none;">
                            <td class="DetailTitle">
                                <div class="fixWidth2">
                                    <a class="blue-01"><strong>培训层级：</strong></a>
                                    <asp:Literal ID="tbTrainLevel" runat="server"></asp:Literal>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2">
                                    <a class="blue-01"><strong>主办单位：</strong></a>
                                    <asp:Literal ID="tbHostUnit" runat="server"></asp:Literal>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2">
                                    <a class="blue-01"><strong>开课地点： </strong></a>
                                    <asp:Literal ID="tbPlace"  runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr style="display: none;">
                            <td class="DetailTitle">
                                <div class="fixWidth2">
                                    <a class="blue-01"><strong>开设对象： </strong></a>
                                    <asp:Literal ID="tbDeptDisplayName"  runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr id="trAttachment" runat="server">
                            <td class="DetailTitle">
                                <div class="fixWidth2" style="margin-left: 1px;">
                                    <a class="blue-01"><strong>开始时间： </strong></a>
                                    <asp:Literal  ID="tbBeginTime"  runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr id="tr5" runat="server">
                            <td class="DetailTitle">
                                <div class="fixWidth2" style="margin-left: 1px;">
                                    <a class="blue-01"><strong>结束时间： </strong></a>
                                    <asp:Literal  ID="tbEndTime"  runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr id="tr1" runat="server">
                            <td class="DetailTitle">
                                <div class="fixWidth2" style="margin-left: 1px;">
                                    <a class="blue-01"><strong>课程学分： </strong></a>
                                    <asp:Literal  ID="tbScore"  runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr style="display: none;">
                            <td class="DetailTitle">
                                <div class="fixWidth2" style="margin-left: 1px;">
                                    <a class="blue-01"><strong>培训时间： </strong></a>
                                    <div class="PageGridBorder">
                                        <table cellspacing="0" cellpadding="0" border="0" class="PageGridHeader" width="100%">
                                            <wsc:ListHeader ID="lhGender" runat="server" Title="&nbsp;开始时间" Width="80" />
                                            <wsc:ListHeader ID="lhBirthDay" runat="server" Title="&nbsp;结束时间" Width="80" />
                                            <wsc:ListHeader ID="lhScore" runat="server" Title="&nbsp;上课时间" Width="80" />
                                            <wsc:ListHeader ID="lhDepart" runat="server" Title="&nbsp;下课时间" Width="80" />
                                        </table>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
                                            <asp:Repeater ID="rptOrderInfo" runat="server">
                                                <ItemTemplate>
                                                    <tr id="TableRow_<%# Container.ItemIndex%>" style="cursor: hand; text-align: left;"
                                                        class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                                                        onclick="ClickChangeClass(this);">
                                                        <td style="display: none;">
                                                            <%# DataBinder.Eval(Container.DataItem,"ID") %>
                                                        </td>
                                                        <td width="80">
                                                            <%# DataBinder.Eval(Container.DataItem, "BeginTime")%>
                                                        </td>
                                                        <td width="80">
                                                            <%# DataBinder.Eval(Container.DataItem, "EndTime") %>
                                                        </td>
                                                        <td width="80">
                                                            <%# DataBinder.Eval(Container.DataItem, "BeginHour") %>
                                                        </td>
                                                        <td width="80">
                                                            <%# DataBinder.Eval(Container.DataItem, "EndHour") %>
                                                        </td>
                                                    </tr>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </table>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                    <table id="Table2" border="0" cellspacing="0" cellpadding="0"
                        class="FormTable tablefix" width="100%">
                        <tr style="display: none;">
                            <td class="DetailTitle">
                                <div class="fixWidth2">
                                    <a class="blue-01"><strong>课程介绍： </strong></a>
                                    <asp:Literal ID="tbCourseInfo"  
                                        runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr style="display: none;">
                            <td class="DetailTitle">
                                <div class="fixWidth2">
                                    <a class="blue-01"><strong>讲师介绍： </strong></a>
                                    <asp:Literal ID="tbLectorInfo"  
                                        runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2">
                                    <a class="blue-01"><strong>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注： </strong>
                                    </a>
                                    <asp:Literal ID="tbComment"  
                                        runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2">
                                    <a class="blue-01"><strong>教学计划： </strong></a>
                            </td>
                        </tr>
                        
                    </table>
                </div>
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="box01">
        <tr>
            <td valign="top" class="content" id="MainContentTD">
                <div id="MainContent" style="overflow: auto; height: 230px; padding-left: 8px;" class="ScrollDiv">
                    <asp:Label ID="tbCurriculum" runat="server"></asp:Label>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="Div2ContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="TabberJSContentPlaceHolder" runat="Server">
    var height = document.body.clientHeight; 
    var tblTopContent = document.getElementById("tblTopContent");
    var MainContent2 = document.getElementById("MainContent");
     MainContent2.style.height=(height- 50 - tblTopContent.offsetHeight)+"px"; 
      var width = document.body.clientWidth; 
   if(width > 20) document.getElementById("MainContent").style.width = (width-5) + "px";
</asp:Content>
